$(function(){
	alert("11111");
		$("#pageForm").submit(function(){
			var inputPage=$("#inputPage").val();
			var hiddenPagge=$("#hiddenPagge").val();
			var redQuantity=/^[1-9]+[0-9]*$/;
			if(inputPage!=null && inputPage!=''){
				var inputPageInt = parseInt(inputPage);
				var hiddenPaggeInt = parseInt(hiddenPagge);
				if(inputPageInt < 1){
					errerM("请输入大于0的数",1.5);
					return false;
				}else if(inputPageInt > hiddenPaggeInt){
					errerM("没有当前页数",1.5);
					return false;
				}else if(!redQuantity.test(inputPage)){
			        errerM("没有当前页数,请输入整数",1.5);	
			        return false;
				}else{
					return true;
				}
			}
			errerM("请您输入页码",1.5);
			return false;
		});
	});

var form1 = document.getElementById("pageForm");
var url = form1.action;
//首页
function first(){
    form1.action  = url+"?pageFinder.pageNo=1";
    form1.submit();
}
//上一页
function previous(){
    form1.action  = url+"?pageFinder.pageNo=${pageFinder.pageNo-1 }";
    form1.submit();
}
//下一页
function next(){
    form1.action  = url+"?pageFinder.pageNo=${pageFinder.pageNo+1 }";
    form1.submit();
}
//尾页
function last(){
  form1.action  = url+"?pageFinder.pageNo=${pageFinder.pageCount }";
  form1.submit();
}
 